#include"processpool.hpp"

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        cout << "需要指定参数" << endl;
        return UsageError;
    }
    vector<channel> channels;
    // 创建几个子进程
    
    int nums = stoi(argv[1]);
    processpool*run=new processpool(nums,Worker);
    
    run->Initprocesspool();
    run->DispathcTask();
    run->Exit();

    return 0;
}